#ifndef CONFIG_H
#define CONFIG_H
#include "controlcan.h"

// USB-CAN系列接口卡的设备信息
VCI_BOARD_INFO board_info;
// 初始化CAN的配置
VCI_INIT_CONFIG init_config;
// CAN帧结构体
VCI_CAN_OBJ send_joint_v;

// 设备类型修改
DWORD device_type;
// 设备的索引
DWORD device_index;
// CAN控制器的索引 CAN1为0，CAN2为1
DWORD can_index;
// 函数声明
void Init_Can(void);
void SendData(VCI_CAN_OBJ &handle_obj, const int id, const BYTE *data, int dataLen);
VCI_CAN_OBJ Data;

// 台号1
BYTE OPEN_1_1[8] = {0X12, 0X01, 0X00, 0X00, 0X00, 0X00, 0X01, 0X01};
BYTE OPEN_1_2[8] = {0X12, 0X01, 0X00, 0X00, 0X00, 0X00, 0X02, 0X01};
BYTE OPEN_1_3[8] = {0X12, 0X01, 0X00, 0X00, 0X00, 0X00, 0X03, 0X01};
BYTE OPEN_1_4[8] = {0X12, 0X01, 0X00, 0X00, 0X00, 0X00, 0X04, 0X01};
BYTE CLOSE_1[8] = {0X12, 0X01, 0X00, 0X00, 0X00, 0X00, 0X01, 0X00};
// 台号2
BYTE OPEN_2_1[8] = {0X12, 0X02, 0X00, 0X00, 0X00, 0X00, 0X01, 0X01};
BYTE OPEN_2_2[8] = {0X12, 0X02, 0X00, 0X00, 0X00, 0X00, 0X02, 0X01};
BYTE OPEN_2_3[8] = {0X12, 0X02, 0X00, 0X00, 0X00, 0X00, 0X03, 0X01};
BYTE OPEN_2_4[8] = {0X12, 0X02, 0X00, 0X00, 0X00, 0X00, 0X04, 0X01};
BYTE CLOSE_2[8] = {0X12, 0X02, 0X00, 0X00, 0X00, 0X00, 0X01, 0X00};

#endif